package com.cyjf.api.web;


import com.cyjf.biz.service.UserService;
import com.cyjf.dbview.model.UserPO;
import com.cyjf.util.ResultVO;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RequestMapping("/cert")
@RestController
public class LoginController {



    @Resource
    private UserService userService;

    @RequestMapping(value = "/loginUser", method = RequestMethod.POST)
    private ResultVO loginUser(@RequestBody UserPO userPO){
//        return dataSourceService.findResultById(2);

        return userService.checkUserLogin(userPO);
    }
}
